package springboot.tools.state.model;

public class CitTaskConst {

    /**
     * 损益表缓存key前缀
     */
    public static final String PROFIT_CACHE_PREFIX = "profits_";

    public class Type {
        /**
         * 生成明细、汇总表
         */
        public static final String CREATE_DETAIL_SUMMARY = "1";
        /**
         * 生成累计亏损监控表
         */
        public static final String CREATE_LOSS_MONITOR = "2";
        /**
         * 导出明细表
         */
        public static final String EXPORT_DETAIL = "3";
        /**
         * 导出汇总表
         */
        public static final String EXPORT_SUMMARY = "4";

        /**
         * 导出累计亏损监控表
         */
        public static final String EXPORT_LOSS_MONITOR = "5";

        /**
         * 导出全部（明细+汇总)
         */
        public static final String EXPORT_DETAIL_SUMMARY = "6";
    }

    public class Status {
        /**
         * 被合并
         */
        public static final String TASK_STATUS_MERGE = "-1";
        /**
         * 初始状态
         */
        public static final String TASK_STATUS_INIT = "0";
        /**
         * 待生成明细表
         */
        public static final String TASK_STATUS_CREATE_DETAIL = "1";
        /**
         * 待生成汇总表
         */
        public static final String TASK_STATUS_CREATE_MERGE = "2";
        /**
         * 待生成累亏监控表数据范围
         */
        public static final String TASK_STATUS_CREATE_LOSS_RANGE = "10";
        /**
         * 待生成亏损监控表
         */
        public static final String TASK_STATUS_CREATE_LOSS_INFO = "11";
        /**
         * 待导出
         */
        public static final String TASK_STATUS_EXPORT = "20";
        /**
         * 待发送大象通知
         */
        public static final String TASK_STATUS_NOTIFY = "88";
        /**
         * 完成
         */
        public static final String TASK_STATUS_FINISH = "99";

    }

    //累亏监控表单行执行状态
    public class lossMonitorStatus {
        /**
         * 初始(暂未启用)
         */
        public static final String MONITOR_STATUS_INIT = "0";
        /**
         * 待获取基础信息
         */
        public static final String MONITOR_STATUS_BASE_INFO = "1";
        /**
         * 待损益表就绪
         */
        public static final String MONITOR_STATUS_PROFIT_READY = "2";
        /**
         * 待生成月度累亏
         */
        public static final String MONITOR_STATUS_MONTH_LOSS = "3";
        /**
         * 计算完成
         */
        public static final String MONITOR_STATUS_FINISH = "99";
    }

    public class opsPersonType {
        /**
         * 人工
         */
        public static final String OPS_BY_PERSON = "0";
        /**
         * 系统
         */
        public static final String OPS_BY_SYSTEM = "1";
    }


}
